#ifndef _FIG_EXPLODING_MANAGER_H_
#define _FIG_EXPLODING_MANAGER_H_


#include "fig_exploding.h"
#include "ui/ui_manager.h"

class FIGExplodingCollection;



class FIGExplodingManager
{

public:
	
	static FIGExplodingManager&			Instance();
	


	

	void								Render(const math::Vec2& Offset,float Scale);
	void								RenderDebug(const math::Vec2& Offset,float Scale);
	void								Tick(float dt);


	void								Clear();
	void								Spawn(FIGExploding::EXPLODING_TYPES Type, 
											const math::Vec2& Pos,
											float SizeScale,
											float Rotation = 0,
											float MainDealy = 0
											);

	
protected:

	FIGExplodingManager();
	~FIGExplodingManager();

	void								SpawnOnlyone(FIGExploding::EXPLODING_TYPES Type, 
											const math::Vec2& Pos,
											float SizeScale,
											float Rotation = 0,
											float Delay = 0
											);

	
	std::vector<FIGExplodingCollection*>		m_ExplodingCollections;

};

#endif